package com.yy.pojo.base;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TZfbFollowExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TZfbFollowExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNull() {
            addCriterion("openid is null");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNotNull() {
            addCriterion("openid is not null");
            return (Criteria) this;
        }

        public Criteria andOpenidEqualTo(String value) {
            addCriterion("openid =", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotEqualTo(String value) {
            addCriterion("openid <>", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThan(String value) {
            addCriterion("openid >", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThanOrEqualTo(String value) {
            addCriterion("openid >=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThan(String value) {
            addCriterion("openid <", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThanOrEqualTo(String value) {
            addCriterion("openid <=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLike(String value) {
            addCriterion("openid like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotLike(String value) {
            addCriterion("openid not like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidIn(List<String> values) {
            addCriterion("openid in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotIn(List<String> values) {
            addCriterion("openid not in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidBetween(String value1, String value2) {
            addCriterion("openid between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotBetween(String value1, String value2) {
            addCriterion("openid not between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andFollow_dateIsNull() {
            addCriterion("follow_date is null");
            return (Criteria) this;
        }

        public Criteria andFollow_dateIsNotNull() {
            addCriterion("follow_date is not null");
            return (Criteria) this;
        }

        public Criteria andFollow_dateEqualTo(Date value) {
            addCriterionForJDBCDate("follow_date =", value, "follow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_dateNotEqualTo(Date value) {
            addCriterionForJDBCDate("follow_date <>", value, "follow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_dateGreaterThan(Date value) {
            addCriterionForJDBCDate("follow_date >", value, "follow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_dateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("follow_date >=", value, "follow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_dateLessThan(Date value) {
            addCriterionForJDBCDate("follow_date <", value, "follow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_dateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("follow_date <=", value, "follow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_dateIn(List<Date> values) {
            addCriterionForJDBCDate("follow_date in", values, "follow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_dateNotIn(List<Date> values) {
            addCriterionForJDBCDate("follow_date not in", values, "follow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_dateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("follow_date between", value1, value2, "follow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_dateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("follow_date not between", value1, value2, "follow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateIsNull() {
            addCriterion("unfollow_date is null");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateIsNotNull() {
            addCriterion("unfollow_date is not null");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateEqualTo(Date value) {
            addCriterionForJDBCDate("unfollow_date =", value, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateNotEqualTo(Date value) {
            addCriterionForJDBCDate("unfollow_date <>", value, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateGreaterThan(Date value) {
            addCriterionForJDBCDate("unfollow_date >", value, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("unfollow_date >=", value, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateLessThan(Date value) {
            addCriterionForJDBCDate("unfollow_date <", value, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("unfollow_date <=", value, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateIn(List<Date> values) {
            addCriterionForJDBCDate("unfollow_date in", values, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateNotIn(List<Date> values) {
            addCriterionForJDBCDate("unfollow_date not in", values, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("unfollow_date between", value1, value2, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andUnfollow_dateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("unfollow_date not between", value1, value2, "unfollow_date");
            return (Criteria) this;
        }

        public Criteria andFollow_countIsNull() {
            addCriterion("follow_count is null");
            return (Criteria) this;
        }

        public Criteria andFollow_countIsNotNull() {
            addCriterion("follow_count is not null");
            return (Criteria) this;
        }

        public Criteria andFollow_countEqualTo(Integer value) {
            addCriterion("follow_count =", value, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_countNotEqualTo(Integer value) {
            addCriterion("follow_count <>", value, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_countGreaterThan(Integer value) {
            addCriterion("follow_count >", value, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_countGreaterThanOrEqualTo(Integer value) {
            addCriterion("follow_count >=", value, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_countLessThan(Integer value) {
            addCriterion("follow_count <", value, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_countLessThanOrEqualTo(Integer value) {
            addCriterion("follow_count <=", value, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_countIn(List<Integer> values) {
            addCriterion("follow_count in", values, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_countNotIn(List<Integer> values) {
            addCriterion("follow_count not in", values, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_countBetween(Integer value1, Integer value2) {
            addCriterion("follow_count between", value1, value2, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_countNotBetween(Integer value1, Integer value2) {
            addCriterion("follow_count not between", value1, value2, "follow_count");
            return (Criteria) this;
        }

        public Criteria andFollow_statusIsNull() {
            addCriterion("follow_status is null");
            return (Criteria) this;
        }

        public Criteria andFollow_statusIsNotNull() {
            addCriterion("follow_status is not null");
            return (Criteria) this;
        }

        public Criteria andFollow_statusEqualTo(Integer value) {
            addCriterion("follow_status =", value, "follow_status");
            return (Criteria) this;
        }

        public Criteria andFollow_statusNotEqualTo(Integer value) {
            addCriterion("follow_status <>", value, "follow_status");
            return (Criteria) this;
        }

        public Criteria andFollow_statusGreaterThan(Integer value) {
            addCriterion("follow_status >", value, "follow_status");
            return (Criteria) this;
        }

        public Criteria andFollow_statusGreaterThanOrEqualTo(Integer value) {
            addCriterion("follow_status >=", value, "follow_status");
            return (Criteria) this;
        }

        public Criteria andFollow_statusLessThan(Integer value) {
            addCriterion("follow_status <", value, "follow_status");
            return (Criteria) this;
        }

        public Criteria andFollow_statusLessThanOrEqualTo(Integer value) {
            addCriterion("follow_status <=", value, "follow_status");
            return (Criteria) this;
        }

        public Criteria andFollow_statusIn(List<Integer> values) {
            addCriterion("follow_status in", values, "follow_status");
            return (Criteria) this;
        }

        public Criteria andFollow_statusNotIn(List<Integer> values) {
            addCriterion("follow_status not in", values, "follow_status");
            return (Criteria) this;
        }

        public Criteria andFollow_statusBetween(Integer value1, Integer value2) {
            addCriterion("follow_status between", value1, value2, "follow_status");
            return (Criteria) this;
        }

        public Criteria andFollow_statusNotBetween(Integer value1, Integer value2) {
            addCriterion("follow_status not between", value1, value2, "follow_status");
            return (Criteria) this;
        }

        public Criteria andUser_nameIsNull() {
            addCriterion("user_name is null");
            return (Criteria) this;
        }

        public Criteria andUser_nameIsNotNull() {
            addCriterion("user_name is not null");
            return (Criteria) this;
        }

        public Criteria andUser_nameEqualTo(String value) {
            addCriterion("user_name =", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameNotEqualTo(String value) {
            addCriterion("user_name <>", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameGreaterThan(String value) {
            addCriterion("user_name >", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameGreaterThanOrEqualTo(String value) {
            addCriterion("user_name >=", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameLessThan(String value) {
            addCriterion("user_name <", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameLessThanOrEqualTo(String value) {
            addCriterion("user_name <=", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameLike(String value) {
            addCriterion("user_name like", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameNotLike(String value) {
            addCriterion("user_name not like", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameIn(List<String> values) {
            addCriterion("user_name in", values, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameNotIn(List<String> values) {
            addCriterion("user_name not in", values, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameBetween(String value1, String value2) {
            addCriterion("user_name between", value1, value2, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameNotBetween(String value1, String value2) {
            addCriterion("user_name not between", value1, value2, "user_name");
            return (Criteria) this;
        }

        public Criteria andLogon_idIsNull() {
            addCriterion("logon_id is null");
            return (Criteria) this;
        }

        public Criteria andLogon_idIsNotNull() {
            addCriterion("logon_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogon_idEqualTo(String value) {
            addCriterion("logon_id =", value, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idNotEqualTo(String value) {
            addCriterion("logon_id <>", value, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idGreaterThan(String value) {
            addCriterion("logon_id >", value, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idGreaterThanOrEqualTo(String value) {
            addCriterion("logon_id >=", value, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idLessThan(String value) {
            addCriterion("logon_id <", value, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idLessThanOrEqualTo(String value) {
            addCriterion("logon_id <=", value, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idLike(String value) {
            addCriterion("logon_id like", value, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idNotLike(String value) {
            addCriterion("logon_id not like", value, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idIn(List<String> values) {
            addCriterion("logon_id in", values, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idNotIn(List<String> values) {
            addCriterion("logon_id not in", values, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idBetween(String value1, String value2) {
            addCriterion("logon_id between", value1, value2, "logon_id");
            return (Criteria) this;
        }

        public Criteria andLogon_idNotBetween(String value1, String value2) {
            addCriterion("logon_id not between", value1, value2, "logon_id");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}